remove duplicate characters from string java